package index

import (
	"app/internal/repo"
	"fmt"

	"github.com/gin-gonic/gin"
)

func Index(ctx *gin.Context) {
	news := repo.GetNews()
	fmt.Println(news)
	ctx.JSON(200, gin.H{
		"data": news,
	})
}
